<template>
	<view class="">
		<navigator url="/pages/demo4/demo4">跳转到demo4----</navigator>
		<button @click="jumpHome">跳转到首页</button>
		<button @click="goBack">返回上一页</button>
		<view class="">
			参数:{{name}} {{age}} {{like}}
		</view>
	</view>
</template>

<script setup>
	
	const name = ref('')
	const age = ref('')
	const like = ref('')
	onLoad((e)=>{
		console.log(e);
		name.value = e.name
		age.value = e.age
		like.value = e.like
	})
	
	function jumpHome(){
		uni.reLaunch({
			url:'/pages/index/index'
		})
	}
	
	function goBack(){
		uni.navigateBack()
	}
</script>

<style lang="scss" scoped>

</style>
